package com.twu.biblioteca;

/**
 * Created by kathy on 12/04/14.
 */
public class Book {

    private StringBuilder id;
    private StringBuilder name;
    private StringBuilder author;
    private int edition;
    private User user;


    public Book(StringBuilder id, StringBuilder name, StringBuilder author, int edition){
        this.id = id;
        this.name = name;
        this.author = author;
        this.edition = edition;
    }

    public void printBook(){
        System.out.print(id + "\t\t");
        System.out.print(name + "\t\t");
        System.out.print(author + "\t\t");
        System.out.print(edition + "\t\t\n");
    }


    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public StringBuilder getId() {
        return id;
    }
}
